#ifndef GLOBALMESSAGE_H
#define GLOBALMESSAGE_H

#include "d3dUtil.h"


class GlobalMessage
{
public:
	~GlobalMessage(void);
	static GlobalMessage* Instance();

	//get and set the time from last frame
	void	SetTimeFromLastFrame(float time);
	float	GetTimeFromLastFrame();

	//get and set the view matrix
	D3DXMATRIX	GetViewMatrix();
	void		SetViewMatrix(const D3DXMATRIX& view);

	//get and set the projection matrix
	D3DXMATRIX	GetProjMatrix();
	void		SetProjMatrix(const D3DXMATRIX& proj);


private:
	GlobalMessage(void);
	GlobalMessage(const GlobalMessage&);
	GlobalMessage& operator=(const GlobalMessage&);

private:
	//Global Message
	float				m_fTimeFromLastFrame;

	D3DXMATRIX			m_matView;
	D3DXMATRIX			m_matProj;
};



#endif
